import { Entity, Code, CreateDate, DateTime, Digdit, MemberId, Openid, PrimaryUuid, UpdateDate, Uuid } from "@sker/core";

@Entity({ name: 'gym_card_log' })
export class GymCardLog {
    @PrimaryUuid({
        primaryKeyConstraintName: "PK_GYM_CARD_LOG_ID"
    })
    id: string;

    @MemberId({ comment: '会员id' })
    member_id: string;

    @Openid({ comment: 'openid' })
    openid: string;

    @Uuid({ comment: '课时卡ID' })
    card_id: string;

    @Digdit({ comment: '剩余课时' })
    count: number;

    @DateTime({ comment: '最后使用时间' })
    last_use_date: Date;

    @Code({ comment: '状态' })
    status: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}